<?php

namespace app\index\model;

use think\Model;

class NewsModel extends Model

{
    
    protected $table = 'news';
    
    public function getNews()
	{
	   return $this->limit(3)
	    ->order('id', 'desc')
	    ->select();
	}
	
	public function getNew()
	{
	    return $this
	    ->order('id', 'desc')
	    ->select();
	}
	
}

